package com.netease.b.b.d;

import com.netease.b.b.e.d;
import com.netease.b.b.e.f;
import org.json.JSONException;
import org.json.JSONObject;

public class c extends com.netease.b.b.e.a
{
  public static final String a = "0dc73ffbb4d74a2abcca0f6ebb3d328b";
  public static final String b = "af91fce2fe022419cec7d54f667373ea";
  private static final String d = "http://open.t.qq.com";
  private static c e;

  public c()
  {
    super("0dc73ffbb4d74a2abcca0f6ebb3d328b", "af91fce2fe022419cec7d54f667373ea");
  }

  public static c a()
  {
    if (e == null)
      e = new c();
    return e;
  }

  private String a(int paramInt1, int paramInt2)
  {
    String str;
    if (1 == paramInt1)
      str = "参数错误";
    while (true)
    {
      return str;
      if (2 == paramInt1)
      {
        str = "频率受限";
        continue;
      }
      if (3 == paramInt1)
        switch (paramInt2)
        {
        case 8:
        default:
          str = "处理失败";
          break;
        case 1:
          str = "无效TOKEN,被吊销";
          break;
        case 2:
          str = "请求重放";
          break;
        case 3:
          str = "access_token不存在";
          break;
        case 4:
          str = "access_token超时";
          break;
        case 5:
          str = "oauth 版本不对";
          break;
        case 6:
          str = "oauth 签名方法不对";
          break;
        case 7:
          str = "参数错";
          break;
        case 9:
          str = "验证签名失败";
          break;
        case 10:
          str = "网络错误";
          break;
        case 11:
          str = "参数长度不对";
          break;
        }
      if (4 == paramInt1);
      switch (paramInt2)
      {
      case 7:
      default:
        str = "未知错误";
        break;
      case 4:
        str = "脏话太多";
        break;
      case 5:
        str = "禁止访问";
        break;
      case 6:
        str = "该记录不存在";
        break;
      case 8:
        str = "内容超过最大长度";
        break;
      case 9:
        str = "包含垃圾信息";
        break;
      case 10:
        str = "发表太快，被频率限制";
        break;
      case 11:
        str = "源消息已删除";
        break;
      case 12:
        str = "源消息审核中";
        break;
      case 13:
        str = "重复发表";
      }
    }
  }

  public int a(d paramd)
  {
    b("0dc73ffbb4d74a2abcca0f6ebb3d328b", "af91fce2fe022419cec7d54f667373ea");
    return a(new b(), paramd);
  }

  public int a(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5, d paramd)
  {
    return a(a.a(paramString1, paramString2, paramString3, paramString4, paramString5), paramd);
  }

  public f a(int paramInt, String paramString)
  {
    f localf;
    if (paramString == null)
      localf = new f(2, -5, null, null);
    while (true)
    {
      return localf;
      com.netease.g.b.e("QqService", paramString);
      localf = new f(2);
      localf.h = paramInt;
      try
      {
        JSONObject localJSONObject = new JSONObject(paramString);
        int i = localJSONObject.getInt("ret");
        int j = localJSONObject.getInt("errcode");
        localf.i = String.valueOf(j);
        localf.j = a(i, j);
      }
      catch (JSONException localJSONException)
      {
        localf.h = -1;
        localf.j = f.a(-1);
        localJSONException.printStackTrace();
      }
    }
  }

  public String a(String paramString)
  {
    return "http://open.t.qq.com" + paramString;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.b.b.d.c
 * JD-Core Version:    0.6.0
 */